import logo from './logo.svg';
import './App.css';
import Lube from './component/lube';
import { Routes, Route, Link } from 'react-router-dom'
import LubeDetail from './component/lube-detail';
function App() {
  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          Edit <code>src/App.js</code> and save to reload.
        </p>
        <Link to={'/lube'}> 跳到lube </Link>
        <Link to={'/'}> 返回首页 </Link>
        <Routes>
          <Route path='lube' element={<Lube />} >
          </Route>
            <Route path='lube/detail/:id' element={<LubeDetail />} />
        </Routes>
      </header>
    </div>
  );
}

export default App;
